package com.hp.java12_springsecurity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hp.java12_springsecurity.entity.Permission;
import com.hp.java12_springsecurity.entity.Role;
import com.hp.java12_springsecurity.entity.User;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    List<Role> selectRolesByUsername(String username);

    List<Permission> selectPermissionsByUsername(String username);
}
